home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / DEPOSITO / REmovido / Nave / Drakojan.swf / scripts / frame_10311 / PlaceObject2_879_539 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2006-07-21  |  1KB  |  45 lines

  1. onClipEvent(enterFrame){
  2.    if(Key.isDown(88))
  3.    {
  4.       if(_root.seco._currentframe == 1)
  5.       {
  6.          if(_root.spaceship._currentframe < 200)
  7.          {
  8.             this._x = _root.spaceship._x + 5;
  9.             this._y = _root.spaceship._y + 20;
  10.             _root.seco.gotoAndStop(2);
  11.             if(_root.sec == 0)
  12.             {
  13.                _root.seco.gotoAndStop(2);
  14.             }
  15.             if(_root.sec == 1)
  16.             {
  17.                _root.seco.gotoAndStop(3);
  18.             }
  19.             if(_root.sec == 2)
  20.             {
  21.                _root.seco.gotoAndStop(4);
  22.             }
  23.             if(_root.sec == 3)
  24.             {
  25.                _root.seco.gotoAndStop(5);
  26.             }
  27.             if(_root.sec == 4)
  28.             {
  29.                _root.seco.gotoAndStop(6);
  30.             }
  31.          }
  32.       }
  33.    }
  34.    if(_root.seco._currentframe == 4)
  35.    {
  36.       this._x = _root.spaceship._x + 0;
  37.       this._y = _root.spaceship._y + 0;
  38.    }
  39.    if(_root.seco._currentframe == 6)
  40.    {
  41.       this._x = _root.spaceship._x + 0;
  42.       this._y = _root.spaceship._y + 0;
  43.    }
  44. }
  45.